#include <stdio.h>

int n;
int stripe[100010];
int dir[100000];
int esq[100000];
int acc;
int cont;

int main() {
	scanf("%d", &n);

	for (int i=0; i<n; i++)
		scanf("%d", &stripe[i]);

	acc=0;

	for (int i=0; i<n; i++) {
		acc+=stripe[i];
		dir[i]=acc;
	}

	acc=0;

	for (int i=n-1; i>=0; i--) {
		acc+=stripe[i];
		esq[i]=acc;
	}

	cont=0;
	
	for (int i=1; i<n; i++) {
		if (dir[i-1]==esq[i]) cont++;
	}

	printf("%d\n", cont);
}
